import SysDictTypeModel from "../../../model/system/SysDictTypeModel";
import SysDictDataModel from "../../../model/system/SysDictDataModel";

export const dictDataTab = SysDictTypeModel.hasMany(SysDictDataModel, {
  as: "dictData",
  foreignKey: "typeId",
});

export const dictTypeTab = SysDictDataModel.belongsTo(SysDictTypeModel, {
  as: "dictTypeData",
  foreignKey: "typeId",
});
